import request from "@/utils/request";
import { reqBaseData, reqTableData } from "@/api/type";


enum API {
  CRE_PEA_MAINTAIN_LIST = "credit/maintain/list",
  CRE_PEA_RESFRESG = "credit/maintain/resfresh",
  CRE_PEA_PEA_CREDIT_SCORING = "credit/maintain/peaCreditScoring",
}


// 列表的分页查询
export const reqMaintainPageList = (form) => {
  return request<any, reqTableData>({
    url: API.CRE_PEA_MAINTAIN_LIST,
    method: 'get',
    data: form,
  })
}

// 农户信息的重新采集
export const reqCreResfresh = (hzIds) => {
  return request<any, reqBaseData>({
    url: API.CRE_PEA_RESFRESG + "/" + hzIds,
    method: 'put',
  })
}


// 农户信息的重新采集
export const reqCreditScoring = (hzIds) => {
  return request<any, reqBaseData>({
    url: API.CRE_PEA_PEA_CREDIT_SCORING + "/" + hzIds,
    method: 'POST',
  })
}
